package com.digitalchina.lxnsy.activity.old;

import android.text.SpannableString;
import android.text.Spanned;
import android.text.style.ForegroundColorSpan;
import android.widget.TextView;

import com.digitalchina.lxnsy.R;
import com.digitalchina.lxnsy.base.BaseActivity;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：
 * 包名：com.digitalchina.bigdata.activity
 * 创建人：白彦东
 * 创建时间：2017/3/4 18:20
 * 修改备注：
 * ================================================
 */

public class CashierDeskTipsActivity extends BaseActivity {

    private TextView tvTips;
    private SpannableString spannableString;
    private String pcUrl = "(http://www.yladc.com)";

    @Override
    public void setLayout() {
        setTitle("订单提交成功");
        setContentLayout(R.layout.activity_cashier_desk_tips);
    }

    @Override
    public void initMember() {
        tvTips = (TextView) findViewById(R.id.cashier_dest_tv_tips);
        spannableString = new SpannableString(tvTips.getText());
        spannableString.setSpan(new ForegroundColorSpan(getResources().getColor(R.color.app_color)), 15, pcUrl.length() + 15, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
        tvTips.setText(spannableString);
    }

    @Override
    public void addListener() {

    }

    @Override
    public void setHandler() {

    }

    @Override
    public void callBack(Object object) {

    }

    @Override
    public void rightOnClick() {

    }
}
